package com.example.springboot159.bean.dataSync;

public class Test2<A,B> {
    private A a;
    private B b;

    public Test2(A a, B b) {
        this.a = a;
        this.b = b;
    }


    public A getA() {
        return a;
    }

    public void setA(A a) {
        this.a = a;
    }

    public B getB() {
        return b;
    }

    public void setB(B b) {
        this.b = b;
    }

    public static void main(String[] args) {
        Test2 test2 = new Test2<>(1,2);
        System.out.println(test2.getA()+" "+test2.getB());
    }
}
